package common;

import java.util.Random;

public class Maths
{

	public Maths()
	{
		
	}
	
	public static int randomBetween(int min, int max)
	{
		Random rand = new Random();
		
		if(min < 0)min = 0;
		else if(max < 0)max = min +1;
		
		if(min > max)max = min +1;
		
		return min + rand.nextInt(max - min);
	}
	
}
